import { createRouter, createWebHashHistory } from 'vue-router'
import Index from '../views/index.vue'
import Login from '../views/login.vue'
import Register from '../views/register.vue'
import Personal from "@/views/personal.vue";

const routes = [
  {
    path: '/',
    name: 'index',
    component: Index
  },
  {
    path: '/login',
    name: 'login',
    component: Login
  },
  {
    path: '/register',
    name: 'register',
    component: Register
  },
  {
    path: '/personal',
    name: 'personal',
    component: Personal
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
